package uk.me.dewi.appenin.android.dao.rest.json;

import org.apache.http.HttpRequest;
import uk.me.dewi.appenin.android.dao.rest.AppeninHttpRequestFactory;

public class JsonRequestFactory extends AppeninHttpRequestFactory {
    
    public JsonRequestFactory(String baseUrl) {
        super(baseUrl);
    }

    public static final String MIME_JSON = "application/json";

    protected HttpRequest configureRequest(HttpRequest request){
        request.setHeader("Accept", MIME_JSON);
        request.setHeader("Content-type", MIME_JSON);
        return request;
    }
}
